function openclose(obj) {
	if ($(obj).hasClass('open')) {
		$(obj + " .popbody").slideUp("slow");
		$(obj + " .btnopenclose").html("Open");
		$(obj).removeClass('open');	
	} else {
		$(obj + " .popbody").slideDown("slow");
		$(obj + " .btnopenclose").text("Close");	
		// TODO labels are not changed
		$(obj).addClass('open');
	}
}

$(function() { 
	$('.dateinput').date_input()
});